import net.egork.utils.Solver;
import net.egork.utils.io.InputReader;

import java.io.PrintWriter;

public class Task90A implements Solver {
	public void solve(int testNumber, InputReader in, PrintWriter out) {

        int r = in.readInt();
        int g = in.readInt();
        int b = in.readInt();

        int tr = 3 * ((r - 1) >> 1);
        int tg = 1 + 3 * ((g - 1) >> 1);
        int tb = 2 + 3 * ((b - 1) >> 1);
        int res = 30 + Math.max(tr, Math.max(tg, tb));

        out.println(res);
	}
}




